<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>完善资料</title>
  <link rel="stylesheet" href="__STATIC__/index/css/center2.css">
  <script src="__STATIC__/index/js/jquery-3.2.1.js"></script>
  <script src="__STATIC__/index/js/area.js"></script>
  <script src="__STATIC__/layui/layui.js"></script>
</head>
     <script type="text/javascript">
     	function materials(){
     		var name = $('#name').val();
     		var present = $('#present').val();
     		var username = $('#username').val();
     		var identity = $('#identity').val();
     		var qq = $('#qq').val();
     		var mobile = $('#mobile').val();
     		var s_province = $('#s_province').val();
     		var s_city = $('#s_city').val();
     	
     		
     		if(name==''){
     			layui.use('layer', function(){
				  var layer = layui.layer;
				  layer.alert('请填写商家昵称', {icon: 2});
					});              
			 		return false;
     		}
     		if(present==''){
     			layui.use('layer', function(){
				  var layer = layui.layer;
				  layer.alert('请填入简介', {icon: 2});
					});              
			 		return false;
     		}
     		if(username==''){
     			layui.use('layer', function(){
				  var layer = layui.layer;
				  layer.alert('请填入真实姓名', {icon: 2});
					});              
			 		return false;
     		}
     		if(identity==''){
     			layui.use('layer', function(){
				  var layer = layui.layer;
				  layer.alert('请填入身份证号', {icon: 2});
					});              
			 		return false;
     		}
     		if(qq==''){
     			layui.use('layer', function(){
				  var layer = layui.layer;
				  layer.alert('请填写qq', {icon: 2});
					});              
			 		return false;
     		}
     		if(mobile==''){
     			layui.use('layer', function(){
				  var layer = layui.layer;
				  layer.alert('请填写手机号', {icon: 2});
					});              
			 		return false;
     		}
     		
     		if(s_province=='省份'|| s_city=='地级市'){
     			layui.use('layer', function(){
				  var layer = layui.layer;
				  layer.alert('请填写地址', {icon: 2});
					});              
			 		return false;
     		}
     		
     			if (!$('#agree_btn').hasClass('ivu-radio-checked')){
     				layui.use('layer', function(){
					  var layer = layui.layer;
					  layer.alert('请查看终极推用户协议', {icon: 2});
						});              
				 		return false;
     		}
     			
     				/*if (!$('#agree_btn').hasClass('ivu-radio-checked')){
     				layui.use('layer', function(){
					  var layer = layui.layer;
					  layer.alert('请查看终极推用户协议', {icon: 2});
						});              
				 		return false;
     		}*/
     			
     		var address = s_province+s_city;
     		
     		var data = {
     			 name:name,
					 present:present,
					 username:username,
					 identity:identity,
     			 qq:qq,
     			 mobile:mobile,
     			 address:address,
     		};
     		$.ajax({
     			type:"post",
     			url:"materials_add",
     			data:data,
     			success:function(res){
     				if(res.code==1){
					 		layui.use('layer', function(){
							  var layer = layui.layer;
							  layer.alert(res.msg, {icon: 2},function(){
							  		location.reload(); 
							  });
							}); 
		 			  }else if(res.code==2){
		 				layui.use('layer', function(){
						  var layer = layui.layer;
							  layer.alert(res.msg, {icon: 1},function(){
							  	location.href="{:url('index/seller/index')}";
							  });
			 			 	}); 
		 		    }
     			}
     		});
     		
     	}
     	
     </script> 

<body>
  <div id="app">
    <div class="open">
      <div data-v-1feba729="">
        <div data-v-03b00be2="" data-v-1feba729="">
          <div data-v-03b00be2="" class="header-home">
            <div data-v-03b00be2="" class="detail">
              <div data-v-03b00be2="" class="leftBlock inlineB"><a data-v-03b00be2="" class="liWidth sp-text router-link-active">淘客推广的全新打开方式</a>
                
                
                
              </div>
              <div data-v-03b00be2="" class="rightBlock inlineB">
                 <a data-v-03b00be2="" class="liWidth">招商入驻</a> <a data-v-03b00be2="" href="#" class="liWidth">帮助中心</a>
                <a data-v-03b00be2="" href="#" class="liWidth">联系我们</a></div>
            </div>
          </div>
        </div>
        <div data-v-1feba729="" class="header">
          <div data-v-1feba729="" class="w1200"><a data-v-1feba729="" href="#" class="logo router-link-active"><img
                data-v-1feba729="" src="#"></a>
            <span data-v-1feba729="" class="line"></span> <span data-v-1feba729="" class="plat-text">内容开放平台</span>
            <ul data-v-1feba729="" class="right">
              <li data-v-1feba729=""><img data-v-1feba729="" src="">
                <p data-v-1feba729="" class="text">海量精品任你推广</p>
              </li>
              <li data-v-1feba729=""><img data-v-1feba729="" src="">
                <p data-v-1feba729="" class="text">优势互补抱团取暖</p>
              </li>
              <li data-v-1feba729=""><img data-v-1feba729="" src="">
                <p data-v-1feba729="" class="text">快如闪电全天更新</p>
              </li>
            </ul>
          </div>
        </div>
      </div>
      <div class="nav">
        <div class="w1200">
          <ul class="nav-ul">
            <li class="click"><a href="#" class="">首页</a></li>
            <li class=""><a href="#" class="">平台介绍</a></li>
            <li class=""><a href="#" class="">规则中心</a></li>
          </ul>
        </div>
      </div>
      <div class="w1200 body-form">
        <div class="tip-box border-b">
          <h3 class="tip-text">亲~~请完善您的资料</h3>
          <h2 class="yellow-text">所有填写信息必须真实，如填写错误将无法通过</h2>
        </div>
     
        <form autocomplete="off" class="ivu-form ivu-form-label-right">
          <div class="expert-form border-b">
            
            <div class="ivu-form-item ivu-form-item-required"><label class="ivu-form-item-label" style="width: 110px;">昵称：</label>
              <div class="ivu-form-item-content" style="margin-left: 110px;">
                <div class="w276 ivu-input-wrapper ivu-input-type">
                   <i class="ivu-icon ivu-icon-load-c ivu-load-loop ivu-input-icon ivu-input-icon-validate"></i>
                  <input autocomplete="off" spellcheck="false" type="text" id ="name" placeholder="输入您的昵称" class="ivu-input">
                  
                </div>
                
              </div>
            </div>
            <div class="ivu-form-item ivu-form-item-required"><label class="ivu-form-item-label" style="width: 110px;">简介：</label>
              <div class="ivu-form-item-content" style="margin-left: 110px;">
                <div class="w300 ivu-input-wrapper ivu-input-type"><textarea  id="present"   wrap="soft" autocomplete="off" spellcheck="false"
                    placeholder="请填写你的简介不大于（60个字）" rows="2" class="ivu-input"></textarea></div>
                
              </div>
            </div>
          </div>
          <div class="deteil-info border-b">
            <div class="tip-box">
              <h3 class="tip-text appli-info">申请人信息</h3>
              <h2 class="yellow-text">所有填写信息必须真实，如填写错误将无法通过</h2>
            </div>
            <div class="form-info-box">
              <div class="ivu-form-item ivu-form-item-required"><label class="ivu-form-item-label" style="width: 110px;">姓
                  名：</label>
                <div class="ivu-form-item-content" style="margin-left: 110px;">
                  <div class="w276 ivu-input-wrapper ivu-input-type">
                     <i class="ivu-icon ivu-icon-load-c ivu-load-loop ivu-input-icon ivu-input-icon-validate"></i>
                    <input autocomplete="off" spellcheck="false" type="text"  id="username"  placeholder="请输入您的姓名" class="ivu-input">
                    
                  </div>
                  
                </div>
              </div>
              <div class="ivu-form-item ivu-form-item-required"><label class="ivu-form-item-label" style="width: 110px;">身份证号码：</label>
                <div class="ivu-form-item-content" style="margin-left: 110px;">
                  <div class="w276 ivu-input-wrapper ivu-input-type">
                    
                     <i class="ivu-icon ivu-icon-load-c ivu-load-loop ivu-input-icon ivu-input-icon-validate"></i>
                    <input autocomplete="off" spellcheck="false" id='identity'   type="text" placeholder="请输入18位身份证号" class="ivu-input">
                    
                  </div>
                  
                </div>
              </div>
              <div class="ivu-form-item ivu-form-item-required"><label class="ivu-form-item-label" style="width: 110px;">您的QQ：</label>
                <div class="ivu-form-item-content" style="margin-left: 110px;">
                  <div class="w276 ivu-input-wrapper ivu-input-type">
                    
                     <i class="ivu-icon ivu-icon-load-c ivu-load-loop ivu-input-icon ivu-input-icon-validate"></i>
                    <input autocomplete="off" spellcheck="false"  id="qq"  type="text" placeholder="请输入您的QQ" class="ivu-input">
                    
                  </div>
                  
                </div>
              </div>
              <div class="ivu-form-item ivu-form-item-required"><label class="ivu-form-item-label" style="width: 110px;">手机号：</label>
                <div class="ivu-form-item-content" style="margin-left: 110px;">
                  <div class="w276 ivu-input-wrapper ivu-input-type">
                    
                     <i class="ivu-icon ivu-icon-load-c ivu-load-loop ivu-input-icon ivu-input-icon-validate"></i>
                    <input autocomplete="off" spellcheck="false"  id="mobile"   type="text" placeholder="请输入您的手机号" class="ivu-input">
                    
                  </div>
                  
                </div>
              </div>
              <div class="ivu-form-item ivu-form-item-required"><label class="ivu-form-item-label" style="width: 110px;">所在地：</label>
                <div class="ivu-form-item-content" style="margin-left: 110px;">
                  <div class="w276 ivu-cascader">
                    <div class="ivu-cascader-rel">
                     <!-- 所在地的Input -->
                      <!-- <input type="hidden" style="border:1px solid #eee;">
                      <input type="hidden" style="border:1px solid #eee;"> -->
                      <select id="s_province" class="form-control ucenter_form_data" name="s_province" style="height:40px;width:45%;border: 1px solid #eee;margin-right: 23px;border-radius:2px;">
                          <option value="0">请选择</option> <option value="0">请选择</option>
                        </select>
                        <select id="s_city" class="form-control ucenter_form_data" name="s_city" style="height:40px;width:45%;border: 1px solid #eee;border-radius:2px;">
                          <option value="0">请选择</option>
                        </select>
                    </div>
                    <script>
                      var s = ['s_province', 's_city'];
                      _init_area();
                    </script>
                  </div>
                </div>
              </div>
            </div>
            
                <div class="agreen-radio ivu-form-item">
                  
                  <div class="ivu-form-item-content" style="margin-left: 40px;"><label class="special-radio-agg ivu-radio-wrapper"><span
                        class="ivu-radio fy-checkbox"  id="agree_btn"><span class="ivu-radio-inner"></span> <input type="radio" class="ivu-radio-input"></span>同意</label>
                    <p class="inlineB size"><a href="#" class="">《终极推平台用户服务协议》</a>如发现申请人员弄虚作假或商家申请的，一经发现，我们有权注销账号并追究法律责任</p>
                    
                  </div>
                </div>
                <p class="btn-box-submit btn-right"><button type="button" class="btn-submit ivu-btn ivu-btn-primary" onclick="materials()"><span>提交审核</span></button></p>
              </div>
            </div>
        </form>
      </div>
      <div data-v-5f99bb05="" class="footer">
        <div data-v-5f99bb05="" class="w1200">
          <div data-v-5f99bb05="" class="left">
            <dl data-v-5f99bb05="" class="firstDl"><dt data-v-5f99bb05="">终极推联盟</dt>
              <dd data-v-5f99bb05=""><a data-v-5f99bb05="" href="#" class="">公司简介</a></dd>
              <dd data-v-5f99bb05=""><a data-v-5f99bb05="" href="#" class="">企业文化</a></dd>
              <dd data-v-5f99bb05=""><a data-v-5f99bb05="" href="#" class="">合作联系</a></dd>
              <dd data-v-5f99bb05=""><a data-v-5f99bb05="" href="#" class="">加入我们</a></dd>
            </dl>
            <dl data-v-5f99bb05=""><dt data-v-5f99bb05="">帮助支持</dt>
              <dd data-v-5f99bb05=""><a data-v-5f99bb05="" href="#"
                  class="">新手入门</a></dd>
              <dd data-v-5f99bb05=""><a data-v-5f99bb05="" href="#"
                  class="">常见问题</a></dd>
              <dd data-v-5f99bb05=""><a data-v-5f99bb05="" href="#"
                  class="">客服中心</a></dd>
            </dl>
          </div>
          <div data-v-5f99bb05="" class="footer-box"><img data-v-5f99bb05="" src="">
            <p data-v-5f99bb05=""><img data-v-5f99bb05="" src="">
              <img data-v-5f99bb05="" src="">
              <img data-v-5f99bb05="" src=""></p>
          </div>
        </div>
        <p data-v-5f99bb05="" class="company">© CopyRight 2011-2018 | 终极推联盟
          <a data-v-5f99bb05="" href="/">dacaiji.com</a></p>
      </div>
    </div>
  </div>
</body>
<script>
  $(".fy-checkbox").on("click", function (e) {
  	e.preventDefault();
    $(this).toggleClass("ivu-radio-checked")
  })
</script>

</html>